package com.telecom.aop;

public class Test {
    public static void main(String[] args) {
        /*UserService userService = new UserServiceImpl();
        UserService  proxy = (UserService) ProxyUtil.getProxy(userService, new MyInvocationHandler(userService));
        proxy.save();
        proxy.update();*/
        TeacherService serviceProxy=  (TeacherService) ProxyUtil.getProxy(new TeacherServiceImpl(), new MyInvocationHandler(new TeacherServiceImpl()));
        serviceProxy.teach();
    }
}
